package com.zhf.mapper;

import com.zhf.domain.Comment;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: ZhaoHuanfeng
 * @Date: 2020/11/15 14:58
 */
public interface CommentMapper {

    /**
     * 根据id查询文章评论信息
     * @param aid
     * @return
     */
    @Select("select * from t_comment where a_id=#{aid}")
    public List<Comment> findByAid(int aid);
}
